# 数据库连接信息
HOSTNAME = 'localhost'
PORT = '3306'
USERNAME = 'root'
PASSWORD = 'root'
DATABASE = 'test'
DB_URI = f'mysql+pymysql://{USERNAME}:{PASSWORD}@{HOSTNAME}:{PORT}/{DATABASE}?charset=utf8mb4'
SQLALCHEMY_DATABASE_URI = DB_URI # 必须设置这个属性，将数据库连接信息交给 SQLAlchemy
# QQ 邮箱配置
MAIL_SERVER = "smtp.qq.com"
MAIL_USE_SSL = True
MAIL_PORT = 465
MAIL_USERNAME = "123@qq.com"
MAIL_PASSWORD = "授权码"
MAIL_DEFAULT_SENDER = "123@qq.com"
# 配置redis
REDIS_URL = "redis://localhost:6379/0"
# 密钥
SECRET_KEY = "123456"